home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_10_08 / 1008096a < prev    next >
Text File  |  1992-02-16  |  2KB  |  46 lines

  1. /*--------------------------------------------------*
  2.  *                                                  *
  3.  * Module:    GetTouch.h                            *
  4.  * Purpose:   Header file for GetTouch.c            *
  5.  * Author:    W. Harvey Gray                        *
  6.  * Compiler:  Microsoft 5.0                         *
  7.  *                                                  *
  8.  * Copyright 1992, W. Harvey Gray.  May be used     *
  9.  *   freely, if authorship and publication are      *
  10.  *   acknowledged.                                  *
  11.  *                                                  *
  12.  *--------------------------------------------------*/
  13.  
  14. /*--------------------------------------------------*
  15.  *                struct defines                    *
  16.  *--------------------------------------------------*/
  17.  
  18. struct touchit {    /* struct for touch information */
  19.  
  20.     int        xcen;         /* X centroid of touch */
  21.     int        ycen;         /* Y centroid of touch */
  22.     int        n;         /* Number of touch points */
  23.     boolean    button;            /* Is it a button */
  24. };
  25.  
  26. struct touchxy {     /* struct for touch point data */
  27.  
  28.     int        xt;   /* X coordinate of touch point */
  29.     int        yt;   /* Y coordinate of touch point */
  30.     boolean    ut;             /* Untouch indicator */
  31. };
  32.  
  33. /*--------------------------------------------------*
  34.  *                extern prototypes                 *
  35.  *--------------------------------------------------*/
  36.  
  37. extern struct touchit *TouchInfo( void );
  38.  
  39. extern struct touchxy *GetTouch( boolean * );
  40.  
  41. extern void InitializeTouch( void );
  42. extern void ReplayTouch( boolean );
  43. extern void SetButtonRadius( int );
  44.  
  45.                                    /* End of file. */
  46.